local thbattle__hecheng_chaijie = fk.CreateSkill {

  name = "thbattle__hecheng_chaijie",

  tags = {  },

}



thbattle__hecheng_chaijie:addEffect("active", {
  anim_type = "drawcard",
  prompt = "#thbattle__hecheng_chaijie",
  target_num = 1,
  target_filter =function (self, player, to_select, selected, selected_cards)
    return #selected == 0 and #to_select:getCardIds("e") > 0 and to_select ~= player
  end,
  max_phase_use_time = 1,
  on_use = function(self, room, effect)
    local player = effect.from
    local target = effect.tos[1]
    local target_cid = room:askForCardChosen(player, target, "e", thbattle__hecheng_chaijie.name, "#thbattle__hecheng_chaijie-choose_card")
    room:recastCard({target_cid}, target, thbattle__hecheng_chaijie.name)
    player:drawCards(1, thbattle__hecheng_chaijie.name)
  end,
})

return thbattle__hecheng_chaijie